home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 January: Mac OS SDK / Dev.CD Jan 00 SDK2.toast / What's New / • What was new 11⁄99 / Sample Code / Interapplication Communication / FinderLaunch / MakeFile < prev    next >
Encoding:
Makefile  |  1999-09-13  |  2.4 KB  |  77 lines  |  [TEXT/MPS ]

  1. # File:        MakeFile
  2. #     
  3. #     Description: MPW make command file for generating build commands.
  4. #     Author:        John Montbriand
  5. #     Copyright:     Copyright: © 1999 by Apple Computer, Inc.
  6. #                 all rights reserved.
  7. #     
  8. #     Disclaimer:    You may incorporate this sample code into your applications without
  9. #                 restriction, though the sample code has been provided "AS IS" and the
  10. #                 responsibility for its operation is 100% yours.  However, what you are
  11. #                 not permitted to do is to redistribute the source as "DSC Sample Code"
  12. #                 after having made changes. If you're going to re-distribute the source,
  13. #                 we require that you make it clear in the source that the code was
  14. #                 descended from Apple Sample Code, but that you've made changes.
  15. #     
  16. #     Change History (most recent first):
  17. #
  18. #      9/13/99 - created - JM
  19.  
  20. PPCObjects = :obj:FinderLaunch.c.ppc :obj:TestFinderLaunch.c.ppc
  21. M68kObjects = :obj:FinderLaunch.c.68k :obj:TestFinderLaunch.c.68k
  22.  
  23. CC68k = SC -align power -proto strict 
  24. CCppc  = MrC -w 35 -align power -proto strict 
  25.  
  26. RezFiles = TestFinderLaunch.r
  27. Resources = {RezFiles} TestFinderLaunch.rsrc
  28. TargetFile = TestFinderLaunch
  29.  
  30. # resources
  31.  
  32. {TargetFile} ƒƒ {Resources} {M68kObjects}  {PPCObjects}
  33.     Rez -t "APPL" -i "{RIncludes}" -o {TargetFile} {RezFiles}
  34.  
  35. # object code
  36.  
  37. {TargetFile} ƒƒ {Resources} {M68kObjects}
  38.     Link -w -o {TargetFile} -t "APPL" -sym off ∂
  39.         {M68kObjects} ∂
  40.         {CLibraries}StdCLib.o ∂
  41.         {Libraries}MathLib.o  ∂
  42.         {Libraries}Interface.o ∂
  43.         {Libraries}MacRuntime.o ∂
  44.         {Libraries}ToolLibs.o ∂
  45.         {Libraries}IntEnv.o
  46.  
  47. {TargetFile} ƒƒ {Resources} {PPCObjects}
  48.     PPCLink -t 'APPL' -o {TargetFile} ∂
  49.         -weak AppearanceLib,NavigationLib ∂
  50.         {PPCObjects} ∂
  51.         {SharedLibraries}AppearanceLib ∂
  52.         {SharedLibraries}NavigationLib ∂
  53.         {SharedLibraries}InterfaceLib ∂
  54.         {SharedLibraries}StdCLib ∂
  55.         {SharedLibraries}MathLib ∂
  56.         {PPCLibraries}PPCCRuntime.o ∂
  57.         {PPCLibraries}StdCRuntime.o ∂
  58.         {PPCLibraries}PPCToolLibs.o
  59.  
  60. # source code
  61.  
  62. :obj:FinderLaunch.c.ppc ƒ  FinderLaunch.c FinderLaunch.h
  63.     {CCppc} FinderLaunch.c -o :obj:FinderLaunch.c.ppc
  64.  
  65. :obj:FinderLaunch.c.68k ƒ  FinderLaunch.c FinderLaunch.h
  66.     {CC68k} FinderLaunch.c -o :obj:FinderLaunch.c.68k
  67.  
  68.  
  69. :obj:TestFinderLaunch.c.ppc ƒ  TestFinderLaunch.c TestFinderLaunch.h FinderLaunch.h
  70.     {CCppc} TestFinderLaunch.c -o :obj:TestFinderLaunch.c.ppc
  71.  
  72. :obj:TestFinderLaunch.c.68k ƒ  TestFinderLaunch.c TestFinderLaunch.h FinderLaunch.h
  73.     {CC68k} TestFinderLaunch.c -o :obj:TestFinderLaunch.c.68k
  74.